//用户信息
export default {
  namespaced: true,
  state: {
    userinfo: [],
	userIdCardInfo:[],//身份证读卡信息
    chargefee: "",//充值金额 总额
    userpay: 0,//个人支付金额
    miinfo:"",//医保读卡后返回信息
    ybpay:"",//医保挂号的医保支付金额
    ybzhye:"",//医保账户余额
	userAllPay:"",//医保和个人支付总金额
    isYbPay:false,
	IPatientId:'',//医保个人编号
	IVisitNo:'',//医保流水号
	zzqhInfo:[] //自助取号信息
  },
  getters: {

  },
  mutations: {
    updateisYbPay(state, isYbPay) {
      state.isYbPay = isYbPay;
    },
    updatemiinfo(state, miinfo) {
      state.miinfo = miinfo;
    },
    updateuserinfo(state, userinfo) {
      state.userinfo = userinfo;
      state.chargefee = "";
      state.userpay = 0;
      state.isYbPay = false;
	  state.userIdCardInfo = "";
	  state.IPatientId = "";
	  state.IVisitNo = "";
	  state.userAllPay = "";
	  state.ybzhye = "";
	  state.ybpay = "";
    },
    updatechargefee(state, chargefee) {
      state.chargefee = chargefee;
    },
    updateuserpay(state, userpay) {
      state.userpay = userpay;
    },
    updateybpay(state, ybpay) {
      state.ybpay = ybpay;
    },
    updateybzhye(state, ybzhye) {
      state.ybzhye = ybzhye;
    },
	updateUserIdCardInfo(state, userIdCardInfo) {
	  state.userIdCardInfo = userIdCardInfo;
	},
	updateZzqhInfo(state, zzqhInfo) {
	  state.zzqhInfo = zzqhInfo;
	},
	updateUserAllPay(state, userAllPay) {
	  state.userAllPay = userAllPay;
	},
	updateIPatientId(state, IPatientId) {
	  state.IPatientId = IPatientId;
	},
	updateIVisitNo(state, IVisitNo) {
	  state.IVisitNo = IVisitNo;
	}
  },
  actions: {
    updateisYbPay({ commit }, isYbPay) {
      commit('updateisYbPay', isYbPay)
    },
    updateybpay({ commit }, ybpay) {
      commit('updateybpay', ybpay)
    },
    updateybzhye({ commit }, ybzhye) {
      commit('updateybzhye', ybzhye)
    },
    updatemiinfo({ commit }, miinfo) {
      commit('updatemiinfo', miinfo)
    },
    updateuserinfo({ commit }, userinfo) {
      commit('updateuserinfo', userinfo)
    },
    updatechargefee({ commit }, chargefee) {
      commit('updatechargefee', chargefee)
    },
    updateuserpay({ commit }, userpay) {
      commit('updateuserpay', userpay)
    },
	updateUserIdCardInfo({ commit }, userIdCardInfo) {
	  commit('updateUserIdCardInfo', userIdCardInfo)
	},
	updateZzqhInfo({ commit }, zzqhInfo) {
	  commit('updateZzqhInfo', zzqhInfo)
	},
	updateUserAllPay({ commit }, userAllPay) {
	  commit('updateUserAllPay', userAllPay)
	},
	updateIPatientId({ commit }, IPatientId) {
	  commit('updateIPatientId', IPatientId)
	},
	updateIVisitNo({ commit }, IVisitNo) {
	  commit('updateIVisitNo', IVisitNo)
	},
  }
}